import 'package:flutter/material.dart';

class IndexAppBar extends StatelessWidget {
  const IndexAppBar({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Row(
      children: [
        IconButton(
          onPressed: () {
            print("object");
          },
          icon: const Icon(
            Icons.dehaze,
            color: Color(0xFF000000),
            size: 24,
          ),
        ),
        const Spacer(),
        IconButton(
          padding: EdgeInsets.only(right: 12),
          onPressed: () {
            print("object");
          },
          icon: ClipRRect(
            borderRadius: BorderRadius.circular(10),
            child: Image.network(
              "https://i2.hdslb.com/bfs/face/ffb61eb4be08396c639d64dacb2e7bfe03a1863b.jpg@240w_240h_1c_1s.webp",
              width: 50,
              height: 50,
            ),
          ),
        ),
      ],
    );
  }
}

class StrategyAppBar extends StatelessWidget {
  const StrategyAppBar({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      padding: const EdgeInsets.only(left: 10, top: 5, right: 10, bottom: 5),
      child: Row(
        children: const [
          Text(
            "攻略",
            style: TextStyle(
              color: Color(0xFF000000),
              fontSize: 18,
            ),
          )
        ],
      ),
    );
  }
}

class OrderAppBar extends StatelessWidget {
  const OrderAppBar({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      padding: const EdgeInsets.only(left: 10, top: 5, right: 10, bottom: 5),
      child: Row(
        children: const [
          Text(
            "订单",
            style: TextStyle(
              color: Color(0xFF000000),
              fontSize: 18,
            ),
          )
        ],
      ),
    );
  }
}

class PersonalAppBar extends StatelessWidget {
  const PersonalAppBar({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      padding: const EdgeInsets.only(left: 10, top: 5, right: 10, bottom: 5),
      child: Row(
        children: const [
          Text(
            "我的",
            style: TextStyle(
              color: Color(0xFF000000),
              fontSize: 18,
            ),
          )
        ],
      ),
    );
  }
}
